<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title><fmt:message key="titlePageLogin"/></title>
<!-- 		<link rel="stylesheet" href="http://design.rtve.int/beatrizjc/trato/style.css" type="text/css" media="screen" /> -->
		<link href="/trato/resources/css/style.css" rel="stylesheet"/>
	</head>
	<body onload='document.f.j_username.focus();'>
		<h3><fmt:message key="titleLogin"/></h3>
	
		<c:if test="${not empty error}">
			<div class="errorblock">
				${error}
			</div>
		</c:if>
	
		<form id="security_check" name='f' action="<c:url value='j_spring_security_check' />"
			method='POST'>
				<div class="row">
					<div class="label"><fmt:message key="username"/>:</div>
					<div class="field"><input type='text' name='j_username' value=''></div>
				</div>
				<div class="row">
					<div class="label"><fmt:message key="password"/>:</div>
					<div class="field"><input type='password' name='j_password' /></div>
				</div>
				<div class="row">
					<div class="button">
					<input name="submit" type="submit" value="<fmt:message key="access"/>" /></div>
				</div>
		</form>
		<div class="card login">
			<span class="action"><a href='registro'><fmt:message key="register"/></a></span>
		</div>
	</body>
</html>